package ar.edu.unq.wannaplay.pages.client;

import org.apache.wicket.spring.injection.annot.SpringBean;

import ar.edu.unq.wannaplay.pages.WPPage;
import ar.edu.unq.wannaplay.panels.client.ClientViewPanel;
import ar.edu.unq.wannaplay.services.ClientService;

public class ClientsViewPage extends WPPage {

    @SpringBean(name = "service.clientService")
    private ClientService service;

    public ClientsViewPage() {
        super("Clients View Page");
        this.initialize();
        this.addLanguageSelect();
    }

    @Override
    protected void addMainContent() {
        ClientViewPanel panel = new ClientViewPanel("mainContent", this.getService());
        this.add(panel);
    }

    public void setService(final ClientService service) {
        this.service = service;
    }

    public ClientService getService() {
        return service;
    }

}
